﻿<ui:View 
    x:Class="CPPEI.Coolzon.Theme.Fashion.MainView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:ui="clr-namespace:CPPEI.Coolzon.UI;assembly=CPPEI.Coolzon.UI"
    xmlns:mvc="clr-namespace:CPPEI.Coolzon.Theme.Fashion.MainViewControl"
    mc:Ignorable="d" 
    d:DesignHeight="768" d:DesignWidth="1366">

    <Grid x:Name="grid">
        <Grid.RowDefinitions>
            <RowDefinition Height="41"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="154"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.Resources>
            <Style TargetType="Image" x:Key="closeStyle">
                <Setter Property="Source" Value="Images/x.png" />
                <Style.Triggers>
                    <Trigger Property="IsMouseOver" Value="true">
                        <Setter Property="Source" Value="Images/x2.png" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Grid.Resources>
        <mvc:Header x:Name="header" Panel.ZIndex="1" Grid.Row="0"/>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="60"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid x:Name="centerContent" Grid.Row="0">
                <Grid x:Name="contentBg" Visibility="Hidden" Panel.ZIndex="2">
                    <Grid.Background>
                        <ImageBrush ImageSource="Images/bg.png" />
                    </Grid.Background>
                    <Image x:Name="closeImg" Style="{StaticResource closeStyle}" VerticalAlignment="Top" HorizontalAlignment="Right" Width="31" Height="31" Margin="0,5,5,0"  MouseLeftButtonDown="closeImg_MouseLeftButtonDown"  />
                </Grid>
                <Border x:Name="sceneContent" Background="Transparent" />
                <mvc:JSControlView x:Name="jsControl" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="Hidden"/>
            </Grid>
            <Grid Grid.Row="0">
                <Grid Name="_ctlMagnifierAlert" Visibility="Hidden" Grid.Row="0" Grid.RowSpan="2">
                    <Button  Padding="5" Background="White" HorizontalAlignment="Center" VerticalAlignment="Bottom"
                             Margin="0,0,0,10"
                             Click="OnBtnCloseMagnifierClick">
                        <StackPanel Orientation="Horizontal">
                            <Image Source="images/52.png" Width="80" Margin="0,0,5,0"/>
                            <StackPanel Margin="0,0,5,0">
                                <StackPanel Orientation="Horizontal"  HorizontalAlignment="Center">
                                    <TextBlock Text="正在使用" FontSize="32" VerticalAlignment="Center"/>
                                    <TextBlock Text="放大镜" FontSize="32" VerticalAlignment="Center" FontWeight="Bold" Foreground="Red" Margin="2,0,2,0"/>
                                    <TextBlock Text="中..." FontSize="32" VerticalAlignment="Center"/>
                                </StackPanel>
                                <TextBlock Text="点击关闭" FontSize="32" HorizontalAlignment="Center"/>
                            </StackPanel>
                        </StackPanel>
                    </Button>
                </Grid>
                <Grid Name="_ctlLaserPointAlert" Visibility="Hidden" Grid.Row="0" Grid.RowSpan="2">
                    <Button BorderBrush="Red" BorderThickness="1" Background="White" HorizontalAlignment="Center" VerticalAlignment="Bottom"
                            Margin="0,0,0,10"
                            Click="OnBtnCloseLaserPointClick">
                        <StackPanel Orientation="Horizontal">
                            <Image Source="images/g2.png" Width="80" Margin="0,0,5,0"/>
                            <StackPanel Margin="0,0,5,0">
                                <StackPanel Orientation="Horizontal"  HorizontalAlignment="Center">
                                    <TextBlock Text="正在使用" FontSize="32" VerticalAlignment="Center"/>
                                    <TextBlock Text="激光笔" FontSize="32" VerticalAlignment="Center" FontWeight="Bold" Foreground="Red" Margin="2,0,2,0"/>
                                    <TextBlock Text="中..." FontSize="32" VerticalAlignment="Center"/>
                                </StackPanel>
                                <TextBlock Text="点击关闭" FontSize="32" HorizontalAlignment="Center"/>
                            </StackPanel>
                        </StackPanel>
                    </Button>
                </Grid>
            </Grid>
            <mvc:OperationNavigation x:Name="operationNavigation" Grid.Row="1" />
        </Grid>
        <mvc:ZoomView x:Name="zoomView" Grid.Row="2" />
    </Grid>
</ui:View>
